in#-------------------------------------------------
#
# Project created by QtCreator 2018-12-14T09:39:32
#
#-------------------------------------------------

QT       += core gui
QT       += serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = BlqVisionJHT
TEMPLATE = app
RC_ICONS = 1.ico
RC_FILE += 1.rc
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += QT_MESSAGELOGCONTEXT

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

SOURCES += \
    #Utils/iocardmanager.cpp \
    imagesavemanager.cpp \
    imagesaveworkerthread.cpp \
        main.cpp \
        mainwindow.cpp \
  #  layoutdrawwidget.cpp \
    Camera/cameramanager.cpp \
    Camera/Render.cpp \
    Camera/RGBConvert.cpp \
    Utils/singleton.cpp \
    Utils/toast.cpp \
    Utils/utilscommon.cpp \
    Utils/qhalconwindow.cpp \
    cameradialog.cpp \
    Utils/resultmanager.cpp \
    aboutdialog.cpp \
    showresultdialog.cpp \
    Utils/circlewait.cpp \
    Utils/loadlogthread.cpp \
    authoritymanager.cpp \
 #   imageprocess.cpp \
    serialportdialog.cpp \
    Utils/MyIpAddrEdit.cpp \
    Utils/MyIpPartLineEdit.cpp \
    ipdialog.cpp \
    lightsourcedialog.cpp \
    summarydialog.cpp \
    pwddialog.cpp \
    paramdialog.cpp \
  #  inspectparammanager.cpp \
 #   titlewidget.cpp \
    serialportmanager.cpp \
    bgapackagemanager.cpp \
    teachingdialog.cpp \
    bgaimageprocess.cpp \
    lgaimageprocess.cpp \
    lgapackagemanager.cpp \
    lgaparamdialog.cpp \
  #  InspectImageThread.cpp \
    staticfunction.cpp


HEADERS += \
    #Utils/iocardmanager.h \
    imagesavemanager.h \
    imagesaveworkerthread.h \
        mainwindow.h \
   # layoutdrawwidget.h \
    Camera/CameraAttribute.h \
    Camera/cameramanager.h \
    Camera/Render.h \
    Camera/RGBConvert.h \
    Utils/platformhead.h \
    Utils/singleton.h \
    Utils/toast.h \
    Utils/utilscommon.h \
    Utils/qhalconwindow.h \
    cameradialog.h \
    Utils/resultmanager.h \
    aboutdialog.h \
    showresultdialog.h \
    Utils/circlewait.h \
    Utils/loadlogthread.h \
    authoritymanager.h \
   # imageprocess.h \
    serialportdialog.h \
    Utils/MyIpAddrEdit.h \
    Utils/MyIpPartLineEdit.h \
    ipdialog.h \
    lightsourcedialog.h \
    summarydialog.h \
    pwddialog.h \
    paramdialog.h \
  #  inspectparammanager.h \
  #  titlewidget.h \
    serialportmanager.h \
    teachingdialog.h \
    bgapackagemanager.h \
    bgaimageprocess.h \
    lgaimageprocess.h \
    lgapackagemanager.h \
    lgaparamdialog.h \ 
 #   InspectImageThread.h \
    staticfunction.h



FORMS += \
        mainwindow.ui \
    cameradialog.ui \
    aboutdialog.ui \
    showresultdialog.ui \
    serialportdialog.ui \
    ipdialog.ui \
    lightsourcedialog.ui \
    summarydialog.ui \
    pwddialog.ui \
    paramdialog.ui \
    teachingdialog.ui \
    lgaparamdialog.ui
 #   titlewidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

win32{
    QMAKE_CXXFLAGS += /utf-8
}


#includes
INCLUDEPATH   += "$$(HALCONROOT)/include"
INCLUDEPATH   += "$$(HALCONROOT)/include/halconcpp"
INCLUDEPATH += $$PWD/Utils
INCLUDEPATH += $$PWD/Include

#libs
QMAKE_LIBDIR  += "$$(HALCONROOT)/lib/$$(HALCONARCH)"
unix:LIBS     += -lhalconcpp -lhalcon -lXext -lX11 -ldl -lpthread
win32:LIBS    += "$$(HALCONROOT)/lib/$$(HALCONARCH)/halconcpp.lib" \
                   "$$(HALCONROOT)/lib/$$(HALCONARCH)/halcon.lib"

win32: LIBS += -L$$PWD/Depends/x64/vs2013shared/ -lImageConvert
win32: LIBS += -L$$PWD/Depends/x64/vs2013shared/ -lMVSDKmd
win32: LIBS += -L$$PWD/Depends/x64/vs2013shared/ -lVideoRender

#win32: LIBS += $$PWD/Depends/x64/vs2013shared/D122_x64.lib

DEPENDPATH += $$PWD/Include

RESOURCES += \
    src.qrc

#include (./CustomSplash.pri)
include(3rdparty/qtxlsx/src/xlsx/qtxlsx.pri)
